import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const usePlottingStore = defineStore('plotting', () => {
  //创建的测量对象集合
  const createPlottingData = ref([])
  //判读是否有创建的测量对象
  const hasCreatePlottingData = computed(() => createPlottingData.value.length > 0)

  return {
    createPlottingData,
    hasCreatePlottingData,
  }
})
